package com.ycj.controller;

import com.ycj.aop.DS;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {


    @DS
    @RequestMapping("hello")
    public String hello(@RequestParam(defaultValue = "test", name = "name", required = false) String name) {
//        throw new RuntimeException();
        return "hello " + name;
    }
}
